<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <button onclick="startLottery()">抽奖</button>
  </body>
  <script>
    function startLottery() {
      fetch("http://localhost:3000/hello")
        .then((res) => res.text())
        .then((data) => {
          alert(data);
        });
    }
  </script>
</html>
